package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Set;

public interface IPermissionService {

    void save(Permission permission);

    void delete(Long id);

    void update(Permission permission);

    Permission get(Long id);

    List<Permission> listAll();

    // 分页查询方法
    PageInfo<Permission> query(QueryObject qo);

    void batchSave(Set<Permission> permissions);

    List<Permission> queryByRoleId(Long roleId);

    List<String> queryExpressionsByEmployeeId(Long employeeId);
}